package wiiusej.apptest.generalTasks;

import java.util.concurrent.Callable;

import wiiusej.Wiimote;

public class ActiveSound implements Runnable {

	
	private Wiimote myWiimote;
	
	public ActiveSound(Wiimote wiimote){		
		this.myWiimote = wiimote;		
	}
	

	@Override
	public void run() {
		
		while(true){			
			
			myWiimote.sendSound();
			
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}			
		}	
		
	}

}
